package vip.liux.backend.adapter.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * 账户视图控制器
 */
@RestController
@RequestMapping("/api/account")
public class AccountViewController {

    /**
     * 创建关联用户
     */
    @GetMapping("/login")
    public void login() {
        System.out.println("externalLoginCallback");
    }

    /**
     * 创建关联用户
     */
    @GetMapping("/create-link-user")
    public void createLinkUser() {
        System.out.println("externalLoginCallback");
    }


    /**
     * 外部登录回调
     */
    @GetMapping("/external-login/callback")
    private void externalLoginCallback(
            @RequestParam(required = false, defaultValue = "") String returnUrl,
            @RequestParam(required = false, defaultValue = "") String returnUrlHash,
            @RequestParam(required = false) String remoteError) {
    }
}
